package com.ruoyi.project.system.mapper;

import com.ruoyi.project.system.domain.SiyuEnable;
import com.ruoyi.project.system.domain.SiyuProduct;
import com.ruoyi.project.system.domain.vo.ProductEnable;

import java.util.HashMap;
import java.util.List;

/**
 * 查询产品Mapper接口
 */
public interface SiyuProductMapper {

    List<HashMap<String, String>> selectName();

    SiyuEnable selectEnableByUserIdAndProductId(SiyuEnable siyuEnable);

    int insertSiyuEnable(SiyuEnable siyuEnable);

    int upDateSiyuEnable(SiyuEnable siyuEnable);

    List<SiyuEnable> selectEnableByProductIds(List<Integer> productIds, Long userId);

    List<ProductEnable> selectEnableList(Long userId);

    List<SiyuProduct> selectSiyuProductListBySort(Integer sort);

    /**
     * 查询查询产品
     *
     * @param id 查询产品主键
     * @return 查询产品
     */
    SiyuProduct selectSiyuProductById(Integer id);

    /**
     * 查询查询产品列表
     *
     * @param siyuProduct 查询产品
     * @return 查询产品集合
     */
    List<SiyuProduct> selectSiyuProductList(SiyuProduct siyuProduct);

    /**
     * 修改查询产品
     *
     * @param siyuProduct 查询产品
     * @return 结果
     */
    int updateSiyuProduct(SiyuProduct siyuProduct);

}
